package chapter.android.aweme.ss.com.homework;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ItemActivity extends AppCompatActivity {
    TextView posDisplay;
    @Override
    public void onCreate(Bundle savedInstance){
        super.onCreate(savedInstance);
        setContentView(R.layout.activity_chatroom);
        Intent intent = getIntent();
        Integer position  = intent.getIntExtra("position",0);
        String content = "The " + position.toString() + " th item";
        posDisplay = findViewById(R.id.tv_content_info);
        posDisplay.setText(content);
    }
}